package com.qyhl.webtv.module_circle.circle.msg.notice;


import com.qyhl.webtv.commonlib.entity.circle.CircleNoticeBean;

import java.util.List;

/**
 * Created by helin on 2018/1/30.
 */
public class NoticePresenter implements NoticeContract.NoticePresenter{

    private final NoticeContract.NoticeView view;
    private final NoticeModel model;

    NoticePresenter(NoticeContract.NoticeView view){
        this.view =view;
        this.model =  new NoticeModel(this);

    }

    @Override
    public void getMessageError() {
        view.getMessageError();
    }

    @Override
    public void getMessageSuccess(List<CircleNoticeBean> data, int type) {
        view.getMessageSuucess(data,type);
    }

    @Override
    public void getMessageData(int lastMsgId, int type) {
        model.getNoticeData(lastMsgId,type);
    }



}
